package com.jjb.spider.mqtt.model;

public class WillMeaasge {

    int willQos;
    String topic;
    boolean isWillRetain;
    byte[] willMessage;

    public WillMeaasge(int willQos, String topic, boolean isWillRetain, byte[] willMessage) {
        this.willQos = willQos;
        this.topic = topic;
        this.isWillRetain = isWillRetain;
        this.willMessage = willMessage;
    }

    public WillMeaasge() {}

    public int getWillQos() {
        return willQos;
    }

    public void setWillQos(int willQos) {
        this.willQos = willQos;
    }

    public String getTopic() {
        return topic;
    }

    public void setTopic(String topic) {
        this.topic = topic;
    }

    public boolean isWillRetain() {
        return isWillRetain;
    }

    public void setWillRetain(boolean willRetain) {
        isWillRetain = willRetain;
    }

    public byte[] getWillMessage() {
        return willMessage;
    }

    public void setWillMessage(byte[] willMessage) {
        this.willMessage = willMessage;
    }
}
